package com.some;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class YouKa01 {
    double q = (1 + Math.sqrt(5.0)) / 2.0;

    boolean isWythoff(int a, int b) {
        int t;
        if (a > b) {
            t = a;
            a = b;
            b = t;
        }
        return (int) ((b - a) * q) == a;

    }

    public static void main(String[] args) throws FileNotFoundException {
        YouKa01 youKa01 = new YouKa01();
        Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        int Y = sc.nextInt();
        System.out.println(youKa01.isWythoff(X, Y) ? "No" : "Yes");
    }
}
